import React, { useState } from 'react';
import { TreeSelect as TS } from 'antd';

function TreeSelect({ onChange, value, treeData, ...rest }) {
  const [data, setData] = useState([]);

  return (
    <>
      <TS
        treeData={data}
        {...rest}
        value={value}
        onChange={(value, label, extra) => onChange(value)}
      />
    </>
  );
}

TreeSelect.defaultProps = {};

TreeSelect.propTypes = {};

export default TreeSelect;
